package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.core.xss.Xss;
import org.dromara.system.domain.SysMemberGroup;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员分组业务对象 sys_member_group
 *
 * @author Lion Li
 * @date 2025-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysMemberGroup.class, reverseConvertGenerate = false)
@AllArgsConstructor
@NoArgsConstructor
public class SysMemberGroupBo extends BasePageReqDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    private Long id;

    /**
     *
     */
//    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 组名
     */
    @NotBlank(message = "组名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String memberGroupName;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String memberGroupCode;

    /**
     * 达标奖励金额
     */
    @NotNull(message = "达标奖励金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal complianceRewards;

    /**
     * 达标考核金额（月）
     */
    @NotNull(message = "达标考核金额（月）不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal complianceCheckAmount;

    /**
     * 达标考核月数
     */
    @NotNull(message = "达标考核月数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer complianceCheckMonth;

    /**
     * 售后客服
     */
    @NotBlank(message = "售后客服不能为空", groups = {AddGroup.class, EditGroup.class})
    private String afterSaleWaiter;

    /**
     * 售后维修
     */
    @NotBlank(message = "售后维修不能为空", groups = {AddGroup.class, EditGroup.class})
    private String afterSalesRepair;

    /**
     * 售后微信
     */
    @NotBlank(message = "售后微信不能为空", groups = {AddGroup.class, EditGroup.class})
    private String afterSalesWechat;

    /**
     * 状态  0正常  1停用
     */
    @NotNull(message = "状态  0正常  1停用不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer status;


    /**
     * 下单标题
     */
    @NotBlank(message = "下单标题不能为空", groups = {AddGroup.class, EditGroup.class})
    @Xss(message = "下单标题不能包含脚本字符")
    @Size(min = 0, max = 50, message = "公告标题不能超过{max}个字符")
    private String orderTitle;

    /**
     * 下单金额
     */
    @NotNull(message = "下单金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal orderPrice;

    /**
     * 下单描述
     */
    private String orderDescription;

    /**
     * 总部地址
     */
    @NotBlank(message = "总部地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String headquartersAddress;

    /**
     * 售后地址
     */
    @NotBlank(message = "售后地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String afterSalesAddress;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private Date startTime;

    private Date endTime;


}
